package com.luyuan.crm.promotion;

import com.luyuan.crm.member.model.MemberLevel;
import com.ruijie.foundation.bo.EntityObject;

public class MemberIntegralPromotion extends EntityObject<String> implements Comparable<MemberIntegralPromotion> {

    /**	
     * Member Description
     */
    private static final long serialVersionUID = 1L;

    private MemberLevel memberLevel;

    private int totalIntegral;

    private double discount;

    private int birthIntegral;

    private boolean dailyCare = false;

    private boolean healthKnowledgeSharing = false;

    private boolean oneByOneCare = false;

    public MemberLevel getMemberLevel() {
        return memberLevel;
    }

    public void setMemberLevel(MemberLevel memberLevel) {
        this.memberLevel = memberLevel;
    }

    public int getTotalIntegral() {
        return totalIntegral;
    }

    public void setTotalIntegral(int totalIntegral) {
        this.totalIntegral = totalIntegral;
    }

    public double getDiscount() {
        return discount;
    }

    public void setDiscount(double discount) {
        this.discount = discount;
    }

    public int getBirthIntegral() {
        return birthIntegral;
    }

    public void setBirthIntegral(int birthIntegral) {
        this.birthIntegral = birthIntegral;
    }

    public boolean isDailyCare() {
        return dailyCare;
    }

    public void setDailyCare(boolean dailyCare) {
        this.dailyCare = dailyCare;
    }

    public boolean isHealthKnowledgeSharing() {
        return healthKnowledgeSharing;
    }

    public void setHealthKnowledgeSharing(boolean healthKnowledgeSharing) {
        this.healthKnowledgeSharing = healthKnowledgeSharing;
    }

    public boolean isOneByOneCare() {
        return oneByOneCare;
    }

    public void setOneByOneCare(boolean oneByOneCare) {
        this.oneByOneCare = oneByOneCare;
    }

    @Override
    public int compareTo(MemberIntegralPromotion o) {
        return o.totalIntegral - totalIntegral;
    }

}
